// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 此处后端没有提供注释 DELETE /chat/deleteConversationByChatId */
export async function deleteConversationByChatId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteConversationByChatIdParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/chat/deleteConversationByChatId', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /chat/fluxChat */
export async function fluxChat(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.fluxChatParams,
  options?: { [key: string]: any }
) {
  return request<API.ServerSentEventString[]>('/chat/fluxChat', {
    method: 'GET',
    params: {
      ...params,
      chatQuery: undefined,
      ...params['chatQuery'],
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 PUT /chat/fluxChat */
export async function fluxChat3(body: API.ChatQuery, options?: { [key: string]: any }) {
  return request<API.ServerSentEventString[]>('/chat/fluxChat', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /chat/fluxChat */
export async function fluxChat2(body: API.ChatQuery, options?: { [key: string]: any }) {
  return request<API.ServerSentEventString[]>('/chat/fluxChat', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /chat/fluxChat */
export async function fluxChat5(body: API.ChatQuery, options?: { [key: string]: any }) {
  return request<API.ServerSentEventString[]>('/chat/fluxChat', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 PATCH /chat/fluxChat */
export async function fluxChat4(body: API.ChatQuery, options?: { [key: string]: any }) {
  return request<API.ServerSentEventString[]>('/chat/fluxChat', {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /chat/getConversationByChatId */
export async function getConversationByChatId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getConversationByChatIdParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListMessage>('/chat/getConversationByChatId', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /chat/getConversationsByUserId */
export async function getConversationsByUserId(options?: { [key: string]: any }) {
  return request<API.BaseResponseListBizChatMessage>('/chat/getConversationsByUserId', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /chat/renameSession */
export async function renameSession(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.renameSessionParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/chat/renameSession', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
